load("@rules_python//python:defs.bzl", "py_test")
load("@tink_py_pip_deps//:requirements.bzl", "requirement")

package(default_visibility = ["//:__subpackages__"])

py_library(
    name = "awskms",
    srcs = ["__init__.py"],
    srcs_version = "PY3",
    visibility = ["//visibility:public"],
    deps = [
        ":_aws_kms_client",
    ],
)

py_library(
    name = "_aws_kms_client",
    srcs = ["_aws_kms_client.py"],
    srcs_version =  "PY3",
    deps = [
        "//tink/aead",
        "//tink/core",
        "//tink/cc/pybind:tink_bindings",
    ],
)

py_test(
    name = "_aws_kms_client_test",
    srcs = ["_aws_kms_client_test.py"],
    srcs_version =  "PY3",
    data = [
        "@tink_base//testdata:credentials",
    ],
    deps = [
        ":awskms",
        requirement("absl-py"),
    ],
)

py_test(
    name = "_aws_kms_aead_test",
    srcs = ["_aws_kms_aead_test.py"],
    srcs_version =  "PY3",
    data = [
        "@tink_base//testdata:credentials",
    ],
    deps = [
        ":awskms",
        requirement("absl-py"),
    ],
)
